/**
 * 
 */
package com.sigmatrix.h5.annotation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;


/**
 *验证安卓
 *@ClassName: AndroidValidatorImpl
 *@Description: TODO()
 *@author libin
 *@date 2017年7月7日 下午4:33:01
 */
public class AndroidValidatorImpl implements ConstraintValidator<Android, String>{
	String type;
	public void initialize(Android arg0) {
		this.type = arg0.type();
	}

	public boolean isValid(String arg0, ConstraintValidatorContext arg1) {
			if (arg0.equals("Android")) {
				return true;
			}else {
				return false;
			}
	}
}

